<!--Start Compare Product-->

<div class="container166 bgColorWhite BorderGrayTBLR roundBorderRightBottom maginT6 padding5">
    <h3 class="hdgDgray16Normal txt_Aright paddingT4 fontWight-bold paddingR10">Compare Products</h3>
   
<div class="paddingTB15" id='All_Compare'>
<?php if(!empty($products)){ ?> 
        <p class="paddingB10">
        <div class="paddingB10" >
 <?php foreach ($products as $product) { ?>
        <div class="close-box" id="Compare_Product_<?php echo $product['product_id']; ?>"><a href="<?php echo $products[$product['product_id']]['href']; ?>"><?php echo $products[$product['product_id']]['name']; ?></a>
<span><form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
          <input type="hidden" name="remove" value="<?php echo $product['product_id']; ?>" />
          <a class="button" onclick="removeToCompare('<?php echo $product['product_id']; ?>');" ><?php echo $text_remove; ?></a>
        </form></span>
</div>
    <div class="clear"></div>   
<?php } ?>
       <div id='AddNewCompare'></div>   
        </div>
        <input name="" class="blank-button ft_lt" onclick="removeallToCompare('removeall');"  value="clear all" type="button" />
                   
 <input name="" class="grayButtonW96H27 ft_lt marginL3" onclick="location.href='<?php echo $compare; ?>'" value="" type="button" />
        </p>
        <div class="clear"></div>
<?php }else {?>
 <p class="paddingB10" >
        <div class="paddingB10" id="NULLPROCOMPARE">
 <div class="close-box" >Compare list is empty !</div>
</div>
 <div class="clear"></div>

</p><div id="AddNewCompare"></div>
<?php }?>
    </div>

</div>
<!--End Compare Product-->